<script src="<?php print $url?>js/jquery.ui.core.js"></script>
<script src="<?php print $url?>js/jquery.ui.datepicker.js"></script>
<script src="<?php print $url?>js/jquery.ui.autocomplete.js"></script>
<script src="<?php print $url?>js/jquery.price_format.1.8.min.js"></script>
<div id="main-content">
  <div class="container-fluid">
    <div class="row-fluid">
			<div class="span12">
				<div class="nonboxy-widget">
					<div class="widget-head">
						<h5><i class="black-icons blocks_images"></i><?php print $title?></h5>
					</div>
					<div class="widget-content">
						<div class="widget-box">
              <?php print $this->form_eksternal->form_open("", 'class=" form-horizontal well" id="formoutlet"', 
                      array("id_detail" => $detail[0]->id_mrp_inventory_department))?>
								<fieldset>
									
								</fieldset>
              <div class="row-fluid">
                    <div class="span6 form-horizontal well tab-pane">
                      
                      <div class="control-group">
										<label class="control-label">Inventory</label>
										<div class="controls">
                      <?php print $this->form_eksternal->form_autocomplate("inventory", "id_mrp_inventory", "inventory", "id_mrp_inventory", site_url("mrp/auto-inventory"), $detail[0]->mrp_inventory, $detail[0]->id_mrp_inventory)?>
										</div>
									</div>
									<div class="control-group">
										<label class="control-label">Date</label>
										<div class="controls">
                      <?php print $this->form_eksternal->form_date("tanggal", $detail[0]->tanggal, "tanggal")?>
										</div>
									</div>
									<div class="control-group">
										<label class="control-label">SN Product</label>
										<div class="controls">
                      <?php print $this->form_eksternal->form_input('sn', $detail[0]->sn)?>
										</div>
									</div>
									<div class="control-group">
										<label class="control-label">Guarantee</label>
										<div class="controls">
                      <?php print $this->form_eksternal->form_date("guarantee", $detail[0]->guarantee, "guarantee")?>
										</div>
									</div>
									<div class="control-group">
										<label class="control-label">Expired</label>
										<div class="controls">
                      <?php print $this->form_eksternal->form_date("expired", $detail[0]->expired, "expired")?>
										</div>
									</div>
									<div class="control-group">
										<label class="control-label">Penanggungjawab Inventory</label>
										<div class="controls">
                      <?php print $this->form_eksternal->form_input("pi", $detail[0]->pi)?>
										</div>
									</div>
									<div class="control-group">
										<label class="control-label">Note</label>
										<div class="controls">
                      <?php print $this->form_eksternal->form_textarea('note', $detail[0]->note)?>
										</div>
									</div>

                    </div>
                    <div class="span6 form-horizontal well tab-pane">
                      
                      <div class="control-group">
                        <label class="control-label">Nilai Awal</label>
                        <div class="controls">
                          <?php print $this->form_eksternal->form_input_price("nilai_awal", 'nilai_awal', $detail[0]->nilai_awal)?>
                        </div>
                      </div>
                      <div class="control-group">
                        <label class="control-label">Estimasi Nilai Akhir</label>
                        <div class="controls">
                          <?php print $this->form_eksternal->form_input_price("nilai_akhir", 'nilai_akhir', $detail[0]->nilai_akhir)?>
                        </div>
                      </div>
                      <div class="control-group">
                        <label class="control-label">Umur Ekonomis</label>
                        <div class="controls">
                          <?php print $this->form_eksternal->form_input('umur_ekonomis', $detail[0]->umur_ekonomis)?>
                        </div>
                      </div>
                      
                    </div>
                  </div>
								<div class="form-actions">
									<button class="btn btn-primary" type="submit"><?php print lang("save")?></button>
									<a href="<?php print site_url("mrp/asset/history-inventory/{$detail[0]->id_hrm_department}/{$detail[0]->id_mrp_inventory}/{$detail[0]->id_mrp_inventory_department}")?>" class="btn btn-warning" >Cancel</a>
								</div>
							</form>
						</div>
					</div>
				</div>
			</div>
		</div>
  </div>
</div>